package com.example.cheeseerpadmin.sys.common;


import com.alibaba.fastjson.JSON;

public class CacheBean {
    private String key;
    private Object value;

    public CacheBean(String key, Object value) {
        this.key = key;
        this.value = value;
    }

    public CacheBean() {
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        //return value.toString();--------com.example.cheeseerpadmin.bus.entity.BusGoods@3cc00eb3
        return JSON.toJSON(value).toString();
    }

    public void setValue(Object value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "CacheBean{" +
                "key='" + key + '\'' +
                ", value=" + value +
                '}';
    }
}
